package com.fwj.authorization.staff.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fwj.base.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 菜单
 *
 * @author 樊温军
 * @date 2025/3/18 上午10:32
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "菜单")
public class SysMenu extends BaseDTO {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
     * 菜单编码
     */
    @ApiModelProperty(value = "菜单编码")
    private String code;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称")
    private String name;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    private String icon;

    /**
     * 菜单级别
     */
    @ApiModelProperty(value = "菜单级别")
    private Long level;

    /**
     * 父级菜单编码
     */
    @ApiModelProperty(value = "父级菜单编码")
    private String parentCode;

    /**
     * 菜单URL
     */
    @ApiModelProperty(value = "菜单URL")
    private String url;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Long sort;
}
